home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / sun4.md / bfd / doc / Makefile.in < prev    next >
Makefile  |  1992-06-24  |  9KB  |  281 lines

  1. #
  2. # Makefile
  3. #   Copyright (C) 1990, 1991, 1992 Free Software Foundation
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16. #
  17.  
  18. srcdir = .
  19.  
  20. prefix = /usr/local
  21.  
  22. exec_prefix = $(prefix)
  23. bindir = $(exec_prefix)/bin
  24. libdir = $(exec_prefix)/lib
  25.  
  26. datadir = $(prefix)/lib
  27. mandir = $(prefix)/man
  28. man1dir = $(mandir)/man1
  29. man2dir = $(mandir)/man2
  30. man3dir = $(mandir)/man3
  31. man4dir = $(mandir)/man4
  32. man5dir = $(mandir)/man5
  33. man6dir = $(mandir)/man6
  34. man7dir = $(mandir)/man7
  35. man8dir = $(mandir)/man8
  36. man9dir = $(mandir)/man9
  37. infodir = $(prefix)/info
  38. includedir = $(prefix)/include
  39. docdir = $(datadir)/doc
  40.  
  41. MKDOC=./chew
  42. SHELL = /bin/sh
  43.  
  44. INSTALL = install -c
  45. INSTALL_PROGRAM = $(INSTALL)
  46. INSTALL_DATA = $(INSTALL)
  47.  
  48. AR = ar
  49. AR_FLAGS = qv
  50. BISON = bison
  51. MAKEINFO = makeinfo
  52. RANLIB = ranlib
  53.  
  54. #### Host, target, and site specific Makefile fragments come in here.
  55. ###
  56.  
  57. CFLAGS = $(H_CFLAGS) -I.. -I$(srcdir)/.. -I$(srcdir)/../../include 
  58.  
  59. # main GDB source directory
  60.  
  61. DOCFILES = aoutx.texi  archive.texi archures.texi \
  62.     bfd.texi  cache.texi coffcode.texi \
  63.     core.texi  format.texi  libbfd.texi  \
  64.     opncls.texi  reloc.texi  section.texi  \
  65.     syms.texi  targets.texi init.texi ctor.texi
  66.  
  67. PROTOS = archive.p archures.p bfd.p \
  68.      core.p format.p \
  69.     libbfd.p opncls.p reloc.p \
  70.     section.p syms.p targets.p  \
  71.     format.p  core.p init.p
  72.  
  73. IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip coffcode.ip
  74.  
  75. # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction 
  76. # between VPATH and suffix rules.  If you use GNU Make, perhaps other Makes,
  77. # you don't need these three:
  78. SRCDOC = $(srcdir)/../aoutx.h  $(srcdir)/../archive.c \
  79.     $(srcdir)/../archures.c $(srcdir)/../bfd.c \
  80.     $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
  81.     $(srcdir)/../core.c  $(srcdir)/../format.c \
  82.     $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
  83.     $(srcdir)/../reloc.c  $(srcdir)/../section.c \
  84.     $(srcdir)/../syms.c  $(srcdir)/../targets.c \
  85.     $(srcdir)/../init.c
  86.  
  87. SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
  88.     $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../core.c \
  89.     $(srcdir)/../format.c $(srcdir)/../libbfd.c \
  90.     $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
  91.     $(srcdir)/../section.c $(srcdir)/../syms.c \
  92.     $(srcdir)/../targets.c $(srcdir)/../init.c    
  93.  
  94. SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
  95.     $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
  96.     $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
  97.     $(srcdir)/../init.c $(srcdir)/../ctor.c
  98.  
  99. STAGESTUFF = $(DOCFILES) *.info*
  100.  
  101. all install:
  102.  
  103. info: bfd.info
  104.  
  105. install-info: info
  106.     for i in *.info* ; do \
  107.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  108.     done
  109.  
  110. docs: $(MKDOC) protos bfd.info bfd.dvi bfd.ps
  111.  
  112. $(MKDOC): chew.c
  113.     $(CC) $(CFLAGS) -o $(MKDOC) $(srcdir)/chew.c $(LOADLIBES)
  114.  
  115. protos: libbfd.h libcoff.h bfd.h
  116.  
  117. aoutx.texi: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
  118.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.texi
  119.  
  120. archive.texi: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
  121.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.texi 
  122.  
  123. archures.texi:  $(srcdir)/../archures.c $(srcdir)/doc.str
  124.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.texi 
  125.  
  126. bfd.texi: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
  127.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.texi
  128.  
  129. cache.texi: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
  130.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.texi
  131.  
  132. coffcode.texi:    $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
  133.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.texi
  134.  
  135. core.texi: $(MKDOC) $(srcdir)/../core.c $(srcdir)/doc.str
  136.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../core.c >core.texi
  137.  
  138. format.texi: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
  139.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.texi
  140.  
  141. libbfd.texi: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
  142.     $(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.texi 
  143.  
  144. opncls.texi: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
  145.     $(MKDOC) -f $(srcdir)/doc.str  <$(srcdir)/../opncls.c >opncls.texi
  146.  
  147. reloc.texi : $(MKDOC) $(srcdir)/../reloc.c
  148.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.texi 
  149.  
  150. section.texi: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
  151.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.texi 
  152.  
  153. syms.texi : $(MKDOC) $(srcdir)/../syms.c
  154.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.texi
  155.  
  156. targets.texi: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
  157.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.texi
  158.  
  159. init.texi: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
  160.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.texi
  161.  
  162. ctor.texi: $(MKDOC) $(srcdir)/../ctor.c $(srcdir)/doc.str
  163.     $(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../ctor.c >ctor.texi
  164.  
  165.  
  166. libbfd.h: $(srcdir)/../libbfd-in.h    \
  167.     $(srcdir)/../init.c        \
  168.     $(srcdir)/../libbfd.c        \
  169.     $(srcdir)/../init.c        \
  170.     $(srcdir)/../libbfd.c        \
  171.     $(srcdir)/../cache.c        \
  172.     $(srcdir)/../ctor.c        \
  173.     $(srcdir)/../reloc.c        \
  174.     $(srcdir)/../cpu-h8300.c    \
  175.     $(srcdir)/../cpu-i960.c        \
  176.     $(srcdir)/../archures.c        \
  177.     $(MKDOC)
  178.     cat $(srcdir)/../libbfd-in.h >libbfd.h 
  179.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../init.c >>libbfd.h
  180.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../libbfd.c >>libbfd.h
  181.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../init.c >>libbfd.h
  182.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../libbfd.c >>libbfd.h
  183.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cache.c >>libbfd.h
  184.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../ctor.c >>libbfd.h
  185.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../reloc.c >>libbfd.h
  186.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-h8300.c >>libbfd.h
  187.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../cpu-i960.c >>libbfd.h
  188.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../archures.c >>libbfd.h
  189.  
  190. libcoff.h: $(srcdir)/../libcoff-in.h    \
  191.     $(srcdir)/../coffcode.h \
  192.     $(MKDOC)
  193.     cat $(srcdir)/../libcoff-in.h >libcoff.h
  194.     $(MKDOC) -i -f $(srcdir)/proto.str  < $(srcdir)/../coffcode.h >>libcoff.h
  195.  
  196. bfd.h: $(srcdir)/../bfd-in.h         \
  197.     $(srcdir)/../init.c         \
  198.     $(srcdir)/../opncls.c         \
  199.     $(srcdir)/../libbfd.c         \
  200.     $(srcdir)/../section.c         \
  201.     $(srcdir)/../archures.c        \
  202.     $(srcdir)/../reloc.c        \
  203.     $(srcdir)/../syms.c        \
  204.     $(srcdir)/../archive.c        \
  205.     $(srcdir)/../core.c        \
  206.     $(srcdir)/../targets.c        \
  207.     $(srcdir)/../format.c        \
  208.     $(MKDOC)
  209.     cat $(srcdir)/../bfd-in.h >bfd.h
  210.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../init.c >>bfd.h
  211.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../opncls.c >>bfd.h
  212.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../libbfd.c >>bfd.h
  213.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../section.c >>bfd.h
  214.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archures.c >>bfd.h
  215.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../reloc.c >>bfd.h
  216.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../syms.c >>bfd.h
  217.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../bfd.c >>bfd.h
  218.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../archive.c >>bfd.h
  219.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../core.c >>bfd.h
  220.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../targets.c >>bfd.h
  221.     $(MKDOC) -f $(srcdir)/proto.str<$(srcdir)/../format.c >>bfd.h    
  222.     echo "#endif" >>bfd.h
  223.  
  224.  
  225. clean-info:
  226.     rm -f $(STAGESTUFF) *.p *.ip  bfd.dvi bfd.ps *~* *# bfd.?? \
  227.     bfd.??? $(MKDOC) bfd.h libbfd.h libcoff.h texput.log 
  228.  
  229. clean:
  230.  
  231. bfd.info: $(DOCFILES) bfd.texinfo
  232.     $(MAKEINFO) -o bfd.info $(srcdir)/bfd.texinfo
  233.  
  234. bfd.dvi: $(DOCFILES) bfd.texinfo
  235.     TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
  236. #    texindex bfd.??
  237. #    TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
  238.  
  239. bfd.ps: bfd.dvi
  240.     dvips bfd -o
  241.     
  242. quickdoc: $(DOCFILES) bfd.texinfo
  243.     TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
  244.  
  245. stage1: force
  246.     - mkdir stage1
  247.     - mv -f $(STAGESTUFF) stage1
  248.  
  249. stage2: force
  250.     - mkdir stage2
  251.     - mv -f $(STAGESTUFF) stage2
  252.  
  253. stage3: force
  254.     - mkdir stage3
  255.     - mv -f $(STAGESTUFF) stage3
  256.  
  257. against=stage2
  258.  
  259. comparison: force
  260.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i || exit 1 ; done
  261.  
  262. de-stage1: force
  263.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  264.     - rmdir stage1
  265.  
  266. de-stage2: force
  267.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  268.     - rmdir stage2
  269.  
  270. de-stage3: force
  271.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  272.     - rmdir stage3
  273.  
  274. force:
  275.  
  276. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  277.     $(SHELL) ./config.status
  278.  
  279.